<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>接口管理</title>
</head>
<body>
{extend name="extends/usercenter" /}
<div>
    {block name="left"}
    <h2>功能列表</h2>

    <li>
        <a href="{:url('index')}">
            接口列表
        </a>

    </li>
    <li>
        <a href="{:url('add',['cate_id'=>input('cate_id')])}">
            增加接口
        </a>
    </li>

    {/block}

    {block name="content"}

    <div>
        <a href="{:url('CateAdmin/index',['group_id'=>input('group_id')])}">
            返回分类列表
        </a>

        <table class="table table-hover">
            <thead>
            <tr>
                <th> id</th>
                <th> Name</th>
                <th>地址</th>
                <th>动作</th>

            </tr>
            </thead>
            <tbody>
            {volist name="api.list" id="lv"}
                <tr>
                    <td>
                        {$lv->id}
                    </td>
                    <td>
                        {$lv->name}
                    </td>
                    <td>
                        {$lv.url}
                    </td>
                    <td>
                        <a
                                type="button" href="{:url('edit',['id'=>$lv->id])}"
                           class="btn btn-primary btn-sm">
                            编辑
                        </a>

                    </td>
                </tr>

            {/volist}

            </tbody>

        </table>


    </div>
    <div>
        {$api.page}
    </div>


    {/block}
</div>
</body>
</html>